<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2017/8/30
 * Time: 12:06
 */
namespace  app\index\model;

use think\Model;

class User extends Model{
    protected $auto=["pwd"];
    protected function setPwdAttr($value)
    {
        return md5($value);
    }
}